package com.lfy.Factor.comm.abs;

import com.lfy.Factor.comm.CaoService;
import org.springframework.stereotype.Component;

@Component
public class AbsCao1 extends CaoS {
    @Override
    public boolean parse(Integer code) {
        if (code.equals(1)){
            return true;
        }
        return false;
    }

    @Override
    public String name() {
        return "321";
    }


    @Override
    public void afterPropertiesSet() throws Exception {
        this.register();
    }
}
